package com.ruoyi.system.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作物管理对象 crops
 * 
 * @author ruoyi
 * @date 2025-07-24
 */
public class Crops extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 作物ID（主键） */
    private Long cropid;

    /** 作物名称 */
    @Excel(name = "作物名称")
    private String cropname;

    /** 作物描述 */
    @Excel(name = "作物描述")
    private String cropdescription;

    /** 作物物候期管理信息 */
    private List<Phenologicalperiods> phenologicalperiodsList;

    public void setCropid(Long cropid) 
    {
        this.cropid = cropid;
    }

    public Long getCropid() 
    {
        return cropid;
    }

    public void setCropname(String cropname) 
    {
        this.cropname = cropname;
    }

    public String getCropname() 
    {
        return cropname;
    }

    public void setCropdescription(String cropdescription) 
    {
        this.cropdescription = cropdescription;
    }

    public String getCropdescription() 
    {
        return cropdescription;
    }

    public List<Phenologicalperiods> getPhenologicalperiodsList()
    {
        return phenologicalperiodsList;
    }

    public void setPhenologicalperiodsList(List<Phenologicalperiods> phenologicalperiodsList)
    {
        this.phenologicalperiodsList = phenologicalperiodsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cropid", getCropid())
            .append("cropname", getCropname())
            .append("cropdescription", getCropdescription())
            .append("phenologicalperiodsList", getPhenologicalperiodsList())
            .toString();
    }
}
